<?xml version="1.0" encoding="utf-8"?>

<div xmlns="http://www.w3.org/1999/xhtml" component="$UI/system/components/justep/window/window" design="device:mobile"
  xid="window">  
  <div component="$UI/system/components/justep/model/model" xid="model" style="left:18px;top:83px;height:244px;">
    <div component="$UI/system/components/justep/data/baasData" xid="mainData"
      directDelete="true" autoLoad="true" idColumn="fID"
      onSaveCommit="saveCommit"
      queryAction="queryGateway_table" tableName="gateway_table" url="/Highde/config_path_action" saveAction="saveGateway_table">
      <column label="ID" name="fID" type="String"
        xid=""/>
      <column label="描述名称" name="fName" type="String"
        xid=""/>
      <column label="IP地址" name="fIP" type="String"
        xid=""/>
      <column label="端口" name="fPort" type="Integer"
        xid=""/>
      <column label="项目" name="fProject" type="String"
        xid=""/>
    	<rule xid="rule1">
   <col name="fID" xid="ruleCol1">
    <calculate xid="calculate1">
     <expr xid="default2">justep.UUID.createUUID()</expr></calculate> </col> 
   <col name="fName" xid="ruleCol2">
    <required xid="required1">
     <expr xid="default1">true</expr>
     <message xid="default3">请填写名称</message></required> </col> 
   <col name="fPort" xid="ruleCol3">
    <required xid="required2">
     <expr xid="default4">true</expr>
     <message xid="default5">请填写端口</message></required> 
    <constraint xid="constraint1">
     <expr xid="default8">(/^[1-9][0-9]*$/).test($row.val(&quot;fPort&quot;))</expr>
     <message xid="default9">端口必须为数字</message></constraint> </col> 
   <col name="fIP" xid="ruleCol4">
    <required xid="required3">
     <message xid="default6">请填写IP或者域名</message>
     <expr xid="default7">true</expr></required> </col> </rule></div>
  </div>  
  <div component="$UI/system/components/justep/panel/panel" class="x-panel x-full"> 
    <div class="x-panel-top"> 
      <div component="$UI/system/components/justep/titleBar/titleBar" title="网关信息"
        class="x-titlebar"> 
        <div class="x-titlebar-left"> 
          <a component="$UI/system/components/justep/button/button" label=""
            class="btn btn-link btn-only-icon" icon="icon-chevron-left" onClick="{operation:'window.close'}"
            xid="backBtn"> 
            <i class="icon-chevron-left"/>  
            <span/> 
          </a> 
        </div>  
        <div class="x-titlebar-title"><![CDATA[网关信息]]></div>  
        <div class="x-titlebar-right reverse"><a component="$UI/system/components/justep/button/button" class="btn btn-default" label="保存" xid="button1" onClick="{operation:'mainData.save'}">
   <i xid="i1"></i>
   <span xid="span1">保存</span></a>
  </div> 
      </div> 
    </div>  
    <div class="x-panel-content"> 
      <div component="$UI/system/components/justep/controlGroup/controlGroup"
        class="x-control-group" title="详细信息"> 
        <div class="x-control-group-title">详细信息</div> 
        <div component="$UI/system/components/justep/labelEdit/labelEdit" class="x-label-edit x-label20"> 
          <label class="x-label left" bind-text="$model.mainData.label('fName')"/>  
          <div class="x-edit">
            <input class="form-control" component="$UI/system/components/justep/input/input"
              data="mainData" bind-ref="mainData.ref('fName')"/>
          </div> 
        </div>
        <div component="$UI/system/components/justep/labelEdit/labelEdit" class="x-label-edit x-label20"> 
          <label class="x-label left" bind-text="$model.mainData.label('fIP')"/>  
          <div class="x-edit">
            <input class="form-control" component="$UI/system/components/justep/input/input"
              data="mainData" bind-ref="mainData.ref('fIP')"/>
          </div> 
        </div>
        <div component="$UI/system/components/justep/labelEdit/labelEdit" class="x-label-edit x-label20"> 
          <label class="x-label left" bind-text="$model.mainData.label('fPort')"/>  
          <div class="x-edit">
            <input class="form-control" component="$UI/system/components/justep/input/input"
              data="mainData" bind-ref="mainData.ref('fPort')"/>
          </div> 
        </div>
        </div> 
    </div> 
  </div> 
<span component="$UI/system/components/justep/windowReceiver/windowReceiver" xid="windowReceiver1" onReceive="windowReceiver1Receive"></span></div>